﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TransportAnalizer_2._0.Model
{
    public class BusinessContextFactory : TransportAnalizer_2._0.Model.IBusinessContextFactory
    {
        private TransportAnalizerModelContext context;

        public BusinessContextFactory()
        {
            context = new TransportAnalizerModelContext();
        }

        public INodeBusinessContext GetNodeBusinessContext
        {
            get { return new NodeBusinessContext() { DataContext = context }; }
        }
        public INodeTypeBusinessContext GetNodeTypeBusinessContext
        {
            get { return new NodeTypeBusinessContext() { DataContext = context }; }
        }
    }
}
